package com.bajiao.vo.store;

import com.alibaba.fastjson.annotation.JSONField;
import com.bajiao.entity.order.OrderDetails;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("StoreOrderResponse")
public class StoreOrderResponse {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("购买数量")
    private Integer buyNum;

    @ApiModelProperty("订单金额")
    private BigDecimal orderAmount;

    @JSONField(format = "yyyy-MM-dd HH:mm")
    @ApiModelProperty("支付时间")
    private Date payTime;

    @JSONField(format = "yyyy-MM-dd HH:mm")
    @ApiModelProperty("核销时间")
    private Date verifyTime;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("商品详情")
    private List<OrderDetails> orderDetails;
}
